From: Cosimo Cecchi Date: Mon, 18 Feb 2013 19:17:29 +0000 (-0500) Subject: overviewControls: don't perform translation when target is met already X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4777 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3056fc471008ca6f0afe199cc16961bd1cda4bcf;p=gnome-shell.git overviewControls: don't perform translation when target is met already Fixes a regression from ccb81919f79f9f684234deb8f6b1fcdaae3e7965 --- diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 39ddc78f6..df4d637af 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -144,6 +144,9 @@ const SlidingControl = new Lang.Class({ translationEnd = translation; } + if (this.actor.translation_x == translationEnd) + return; + this.actor.translation_x = translationStart; Tweener.addTween(this.actor, { translation_x: translationEnd, time: SIDE_CONTROLS_ANIMATION_TIME,